#ifndef __SCNS_POWER_H__
#define __SCNS_POWER_H__

#include "ScnsConfig.h"

#if defined(SCNS_POWER_ENABLE)&&SCNS_POWER_ENABLE==1

#include "ScnsBspPower.h"

#include "ScnsYing.h"

typedef enum
{
    SCNS_POWER_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_POWER_STATUS_BEP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_POWER_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
    SCNS_POWER_STATUS_NEED_CHARGE,
    SCNS_POWER_STATUS_NOT_INITED,
}ScnsPowerStatus;

extern ScnsPowerStatus scnsPowerInit(void);
extern float scnsPowerGetVoltage(void);
extern ScnsPowerStatus scnsPowerIfNeedCharge(void);
extern void scnsPowerInterrupt(void);
#endif
#endif
